﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Finance.Web.Models
{
    public class PercentPenaltyViewModel
    { 
        public PercentPenaltyViewModel(PercentPenalty penalty)
        {
            this.Code = penalty.Code;
            this.From = penalty.From;
            this.To = penalty.To;
            this.Percent = penalty.Percent;
        }
        public  int Code { get; set; }

        public int? From { get; set; }

        public int? To { get; set; }

        public double? Percent { get; set; }
    }
    

    public partial class PercentPenalty
    {
        public PercentPenalty()
        {
        }

        public Nullable<int> DepCode { get; set; }
        public Nullable<int> From { get; set; }
        public Nullable<int> To { get; set; }

        public Nullable<double> Percent { get; set; }

        public virtual Deposit Deposit { get; set; }

        public int Code { get; set; }
    }
}